load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
    name = "importintotest_test",
    timeout = "long",
    srcs = [
        "detach_test.go",
        "import_into_test.go",
        "job_test.go",
        "main_test.go",
        "one_parquet_test.go",
        "precheck_test.go",
        "util_test.go",
    ],
    embedsrcs = ["test.parquet"],
    flaky = True,
    race = "on",
    deps = [
        "//br/pkg/mock",
        "//br/pkg/mock/mocklocal",
        "//br/pkg/streamhelper",
        "//br/pkg/utils",
        "//pkg/config",
        "//pkg/disttask/framework/proto",
        "//pkg/disttask/framework/scheduler",
        "//pkg/disttask/framework/storage",
        "//pkg/disttask/framework/testutil",
        "//pkg/disttask/importinto",
        "//pkg/domain/infosync",
        "//pkg/executor/importer",
        "//pkg/kv",
        "//pkg/lightning/backend/local",
        "//pkg/parser/auth",
        "//pkg/parser/terror",
        "//pkg/session",
        "//pkg/testkit",
        "//pkg/testkit/testfailpoint",
        "//pkg/util/dbterror/exeerrors",
        "//pkg/util/dbterror/plannererrors",
        "//pkg/util/sem",
        "//tests/realtikvtest",
        "@com_github_docker_go_units//:go-units",
        "@com_github_fsouza_fake_gcs_server//fakestorage",
        "@com_github_ngaut_pools//:pools",
        "@com_github_pingcap_errors//:errors",
        "@com_github_pingcap_failpoint//:failpoint",
        "@com_github_pingcap_kvproto//pkg/brpb",
        "@com_github_pingcap_kvproto//pkg/import_sstpb",
        "@com_github_pingcap_log//:log",
        "@com_github_stretchr_testify//require",
        "@com_github_stretchr_testify//suite",
        "@com_github_tikv_client_go_v2//util",
        "@com_github_tikv_pd_client//http",
        "@io_etcd_go_etcd_client_v3//:client",
        "@org_uber_go_atomic//:atomic",
        "@org_uber_go_mock//gomock",
        "@org_uber_go_zap//:zap",
    ],
)
